﻿from django.shortcuts import render, HttpResponse


# Create your views here.
def index(request):
    '''首页

    准备工作
    '''
    markdown = """# 数据库迁移和维护

```bash
REM 生成迁移文件
python manage.py makemigrations

REM 执行迁移文件
python manage.py migrate
```
"""
    context = {
        'title': 'Home',
        'markdown': markdown,
    }
    return render(request, 'marked.html', context)
